How to restore deleted lines in the ST-object? How to revert to the original code of changed lines?

There are several possibilities to undo the changes in an ST-object and to get the original code. Here the most common methods:

Method

Details under:

Undo the changes in the ST-editor.
Example: menu Edit – command Undo

Undoing or redoing changes in ST-editor

Discard all changes since the content has been saved.
Example: menu File – command Revert

Undoing or redoing changes in ST-editor

Replace the content with a state from the local history.
context menu of ST-object within the project explorer – command Replace With and Local History..

Replacing a resource with local history

Use of the following commands that is provided due the activated quick difference: Restore Deleted Line and Revert Line
(error) Restriction: This method is only recommended by Neuron, if the deleted/changed lines are located "in the middle" of the ST-object.
If the first/last line of the ST-object has been deleted/changed, this method does not grant that those lines are restored correctly. Rather use one of the other methods to get the original first/last line.

Show Quick Diff